package com.example.dictdemo.service.impl;

import com.example.dictdemo.service.ISysBaseAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 系统基础apiimpl
 *
 * @author dlp
 * @date 2024/08/23
 */
@Service
public class SysBaseAPIImpl implements ISysBaseAPI {


    /**
     * 根据字典表或者字典编码，校验是否在白名单中
     *
     * @param tableOrDictCode 表名或dictCode
     * @param fields          如果传的是dictCode，则该参数必须传null
     * @return
     */
    @Override
    public boolean dictTableWhiteListCheckByDict(String tableOrDictCode, String... fields) {
//        if (fields == null || fields.length == 0) {
//            return dictTableWhiteListHandler.isPassByDict(tableOrDictCode);
//        } else {
//            return dictTableWhiteListHandler.isPassByDict(tableOrDictCode, fields);
//        }
        return false;
    }
}
